POV-Ray : Newsgroups : povray.advanced-users : Beeing stupid... y=x*sin(1/x), how to? : Re: Beeing stupid... y=x*sin(1/x), how to? Server Time
30 Jul 2024 06:25:04 EDT (-0400)
  Re: Beeing stupid... y=x*sin(1/x), how to?  
From: Mario Splivalo
Date: 19 Dec 1999 19:26:19
Message: <MPG.12c7343caf4ca57d989687@news.povray.org>
In article <chrishuff_99-E0211D.15312415121999@news.povray.org>, 
chr### [at] yahoocom says...
> In article <MPG.12c18e98202e9328989683@news.povray.org>, Mario Splivalo 
> <msp### [at] jagorsrcehr> wrote:
> 
> > Anyone, please, i'd love to plot a graph of the function, well, it's like 
> > this:
> > 
> > I have y = x * sin(1/x), and its some graph in 2D, Well, now i want to 
> > rotate that graph around the z-axe (one pointing up/down), and represent 
> > that in POV. Is that possible withouht 3rd party programs/utils?
> 
> If you mean you want to make a kind of lathe, swept around the z axis, 
> it would be pretty simple to do. One way would be to use an isosurface, 
> with a function like:
> function {z - sqrt(x^2 + y^2)*sin(1/sqrt(x^2 + y^2))}
> replacing x with sqrt(x^2 + y^2), which is the distance from the z axis.

Yes, and I get nothing... Or I am doing something wrong ;(

> 
> Another way would be to use an actual lathe object, and use a #while 
> loop to calculate the position of each control point.

Yes, that, i think, will be the only way....

> Or if you want to represent the actual graph in POV, not making a 3D 
> graph, you can use an image_map to use a picture of the graph for the 
> texture, or you can create it out of objects, something like 
> this(untested!):
> 

I need a 3D :)

	MIke


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.